package com.zhangqiang.git.auth2secrity.framework.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Configuration
public class OAuth2Config {

    @Value(value = "${spring.redis.enable}")
    private boolean redis_enable = false;
    @Value(value = "${oauth2.enable}")
    private boolean enable = false;
    @Value(value = "${oauth2.clientId}")
    private String oauth2_clientId;
    @Value(value = "${oauth2.clientSecret}")
    private String oauth2_clientSecret;
    @Value(value = "${oauth2.userName}")
    private String oauth2_userName;
    @Value(value = "${oauth2.userPwd}")
    private String oauth2_userPwd;
    @Value(value = "${oauth2.antPatterns}")
    private String[] antPatterns;

    public boolean isRedis_enable() {
        return redis_enable;
    }

    public void setRedis_enable(boolean redis_enable) {
        this.redis_enable = redis_enable;
    }

    public boolean isEnable() {
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }

    public String getOauth2_clientId() {
        return oauth2_clientId;
    }

    public void setOauth2_clientId(String oauth2_clientId) {
        this.oauth2_clientId = oauth2_clientId;
    }

    public String getOauth2_clientSecret() {
        return oauth2_clientSecret;
    }

    public void setOauth2_clientSecret(String oauth2_clientSecret) {
        this.oauth2_clientSecret = oauth2_clientSecret;
    }

    public String getOauth2_userName() {
        return oauth2_userName;
    }

    public void setOauth2_userName(String oauth2_userName) {
        this.oauth2_userName = oauth2_userName;
    }

    public String getOauth2_userPwd() {
        return oauth2_userPwd;
    }

    public void setOauth2_userPwd(String oauth2_userPwd) {
        this.oauth2_userPwd = oauth2_userPwd;
    }

    public String[] getAntPatterns() {
        return antPatterns;
    }

    public void setAntPatterns(String[] antPatterns) {
        this.antPatterns = antPatterns;
    }
}